package com.example.recordingpen_datacollection.service.impl;

import com.example.recordingpen_datacollection.entity.LimitRatio;
import com.example.recordingpen_datacollection.mapper.LimitRatioMapper;
import com.example.recordingpen_datacollection.service.LimitRatioService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xg
 * @since 2024-06-03
 */
@Service
public class LimitRatioServiceImpl extends ServiceImpl<LimitRatioMapper, LimitRatio> implements LimitRatioService {


    @Override
    public boolean setLimitRatio(Integer ratio, Integer Uid) {
        LimitRatio limitRatio = new LimitRatio();
        limitRatio.setRatio(ratio);
        limitRatio.setUid(Uid);
        return this.save(limitRatio);
    }
}
